// 模拟用户数据
const users = [
  { id: 1, username: 'admin', password: 'admin123', email: 'admin@example.com', role: 'admin', status: 'active' },
  { id: 2, username: 'user1', password: 'user123', email: 'user1@example.com', role: 'user', status: 'active' },
  { id: 3, username: 'user2', password: 'user123', email: 'user2@example.com', role: 'user', status: 'inactive' },
  { id: 4, username: 'editor', password: 'editor123', email: 'editor@example.com', role: 'editor', status: 'active' },
  { id: 5, username: 'viewer', password: 'viewer123', email: 'viewer@example.com', role: 'viewer', status: 'active' },
];

// 模拟产品数据
const products = [
  { id: 1, name: '笔记本电脑', price: 6999, category: '电子产品', stock: 50, status: 'active' },
  { id: 2, name: '智能手机', price: 3999, category: '电子产品', stock: 100, status: 'active' },
  { id: 3, name: '平板电脑', price: 2999, category: '电子产品', stock: 30, status: 'active' },
  { id: 4, name: '耳机', price: 299, category: '配件', stock: 200, status: 'active' },
  { id: 5, name: '键盘', price: 499, category: '配件', stock: 80, status: 'active' },
  { id: 6, name: '鼠标', price: 199, category: '配件', stock: 150, status: 'active' },
  { id: 7, name: '显示器', price: 1299, category: '电子产品', stock: 20, status: 'active' },
  { id: 8, name: '音箱', price: 599, category: '电子产品', stock: 40, status: 'inactive' },
];

// 模拟订单数据
const orders = [
  { id: 1, orderNo: 'ORD-2025-0001', customer: '张三', amount: 6999, status: 'completed', date: '2025-08-01' },
  { id: 2, orderNo: 'ORD-2025-0002', customer: '李四', amount: 3999, status: 'pending', date: '2025-08-02' },
  { id: 3, orderNo: 'ORD-2025-0003', customer: '王五', amount: 2999, status: 'completed', date: '2025-08-03' },
  { id: 4, orderNo: 'ORD-2025-0004', customer: '赵六', amount: 299, status: 'cancelled', date: '2025-08-04' },
  { id: 5, orderNo: 'ORD-2025-0005', customer: '钱七', amount: 499, status: 'completed', date: '2025-08-05' },
  { id: 6, orderNo: 'ORD-2025-0006', customer: '孙八', amount: 199, status: 'pending', date: '2025-08-05' },
  { id: 7, orderNo: 'ORD-2025-0007', customer: '周九', amount: 1299, status: 'completed', date: '2025-08-06' },
  { id: 8, orderNo: 'ORD-2025-0008', customer: '吴十', amount: 599, status: 'pending', date: '2025-08-07' },
];

// 模拟图表数据
const chartData = [
  { name: '1月', sales: 12000, profit: 4000 },
  { name: '2月', sales: 15000, profit: 5000 },
  { name: '3月', sales: 18000, profit: 6000 },
  { name: '4月', sales: 16000, profit: 5300 },
  { name: '5月', sales: 20000, profit: 6700 },
  { name: '6月', sales: 23000, profit: 7700 },
  { name: '7月', sales: 25000, profit: 8300 },
  { name: '8月', sales: 22000, profit: 7300 },
  { name: '9月', sales: 26000, profit: 8700 },
  { name: '10月', sales: 28000, profit: 9300 },
  { name: '11月', sales: 30000, profit: 10000 },
  { name: '12月', sales: 35000, profit: 11700 },
];

// 模拟菜单数据
const menus = [
  { id: 1, name: '仪表盘', path: '/dashboard', icon: 'dashboard', parentId: 0, sort: 1 },
  { id: 2, name: '用户管理', path: '/users', icon: 'users', parentId: 0, sort: 2 },
  { id: 3, name: '订单管理', path: '/orders', icon: 'orders', parentId: 0, sort: 3 },
  { id: 4, name: '产品管理', path: '/products', icon: 'products', parentId: 0, sort: 4 },
  { id: 5, name: '系统设置', path: '/settings', icon: 'settings', parentId: 0, sort: 5 },
  { id: 6, name: '用户配置', path: '/settings/user', icon: 'user', parentId: 5, sort: 1 },
  { id: 7, name: '菜单配置', path: '/settings/menu', icon: 'menu', parentId: 5, sort: 2 },
  { id: 8, name: '部门配置', path: '/settings/department', icon: 'department', parentId: 5, sort: 3 },
  { id: 9, name: '角色配置', path: '/settings/role', icon: 'role', parentId: 5, sort: 4 },
  { id: 10, name: '字典配置', path: '/settings/dictionary', icon: 'dictionary', parentId: 5, sort: 5 },
];

// 模拟部门数据
const departments = [
  { id: 1, name: '技术部', parentId: 0, manager: '张三', description: '负责系统开发和维护' },
  { id: 2, name: '市场部', parentId: 0, manager: '李四', description: '负责市场推广和销售' },
  { id: 3, name: '财务部', parentId: 0, manager: '王五', description: '负责财务管理和会计' },
  { id: 4, name: '人力资源部', parentId: 0, manager: '赵六', description: '负责人力资源管理' },
  { id: 5, name: '前端开发组', parentId: 1, manager: '钱七', description: '负责前端开发' },
  { id: 6, name: '后端开发组', parentId: 1, manager: '孙八', description: '负责后端开发' },
];

// 模拟角色数据
const roles = [
  { id: 1, name: '超级管理员', description: '拥有系统所有权限', menuIds: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] },
  { id: 2, name: '管理员', description: '拥有大部分系统权限', menuIds: [1, 2, 3, 4, 5, 6, 7, 8, 9] },
  { id: 3, name: '操作员', description: '拥有基本操作权限', menuIds: [1, 2, 3, 4] },
  { id: 4, name: '查看员', description: '只有查看权限', menuIds: [1] },
];

// 模拟字典数据
const dictionaries = [
  { id: 1, type: 'order_status', name: '订单状态', items: [
    { key: 'pending', value: '待处理' },
    { key: 'completed', value: '已完成' },
    { key: 'cancelled', value: '已取消' }
  ]},
  { id: 2, type: 'user_status', name: '用户状态', items: [
    { key: 'active', value: '激活' },
    { key: 'inactive', value: '未激活' },
    { key: 'locked', value: '锁定' }
  ]},
  { id: 3, type: 'product_category', name: '产品分类', items: [
    { key: 'electronics', value: '电子产品' },
    { key: 'accessories', value: '配件' },
    { key: 'software', value: '软件' }
  ]},
];

export { users, products, orders, chartData, menus, departments, roles, dictionaries };